package com.zhijian.medical.service.impl;

import com.zhijian.medical.dao.remote.MedicalDeviceMapper;
import com.zhijian.medical.entity.po.MedicalDevice;
import com.zhijian.medical.service.HarmfulService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class HarmfulServiceImpl implements HarmfulService{

    @Autowired
    private MedicalDeviceMapper medicalDeviceMapper;

    @Override
    public MedicalDevice queryInfo(String deviceId) {
        return medicalDeviceMapper.queryDeviceId(deviceId);
    }

    @Override
    public void saveMedical(MedicalDevice medicalDevice) {
        medicalDeviceMapper.save(medicalDevice);
    }
}
